home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / BIOSPRIN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  372 b   |  17 lines

  1. /* biosprin.c --- p 569 */
  2. #include <stdio.h>
  3. #include <bios.h>
  4. #define LPT1  0
  5. #define PRINTER_WRITE   0
  6. #define PRINTER_INIT    1
  7. char str[] = "\rTesting BIOS printing routine\n\r";
  8. main()
  9. {
  10.     int i, status, data;
  11.     status = biosprint(PRINTER_INIT, data, LPT1);
  12.     for(i=0;str[i] != '\0'; i++)
  13.     {
  14.         data =str[i];
  15.         biosprint(PRINTER_WRITE, data, LPT1);
  16.     }
  17. }